]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Jiggle some code around
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 17 Feb 2013 19:30:04 +0000 (14:30 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 18 Feb 2013 19:42:44 +0000 (14:42 -0500)
This is to put state management with state management

https://bugzilla.gnome.org/show_bug.cgi?id=694038

js/ui/messageTray.js

index 942556499408f1cdb3f5be5a202e3322f7bd67ea..16064ebdee8a0a5be2c3bf6175230dc630d3fab2 100644 (file)
@@ -1864,11 +1864,6 @@ const MessageTray = new Lang.Class({
         return false;
     },
 
-    openTray: function() {
-        this._traySummoned = true;
-        this._updateState();
-    },
-
     _onNotificationKeyRelease: function(actor, event) {
         if (event.get_key_symbol() == Clutter.KEY_Escape && event.get_state() == 0) {
             this._closeNotification();
@@ -2035,6 +2030,11 @@ const MessageTray = new Lang.Class({
         this._updateState();
     },
 
+    openTray: function() {
+        this._traySummoned = true;
+        this._updateState();
+    },
+
     toggle: function() {
         this._traySummoned = !this._traySummoned;
         this._updateState();